package cn.wolfcode.wolf2w.repository;

import cn.wolfcode.wolf2w.domain.Region;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;

/**
 * 区域持久化接口
 */
public interface RegionRepository extends MongoRepository<Region, String>{

    /**
     * 通过状态查询热门区域
     * @param hot
     * @return
     */
    List<Region> findByIshotOrderBySequence(int hot);
}
